package org.aizuomeng.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 权限规则
 * </p>
 *
 * @author luhaolong
 * @since 2021-11-20 15:19:52
 */
@Getter
@Setter
@TableName("sys_permission_data_rule")
@ApiModel(value = "SysPermissionDataRule对象", description = "权限规则")
public class SysPermissionDataRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.NONE)
    private String id;

    @ApiModelProperty("菜单ID")
    @TableField("permission_id")
    private String permissionId;

    @ApiModelProperty("规则名称")
    @TableField("rule_name")
    private String ruleName;

    @ApiModelProperty("字段")
    @TableField("rule_column")
    private String ruleColumn;

    @ApiModelProperty("条件")
    @TableField("rule_conditions")
    private String ruleConditions;

    @ApiModelProperty("规则值")
    @TableField("rule_value")
    private String ruleValue;

    @ApiModelProperty("权限有效状态1有0否")
    @TableField("`status`")
    private String status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("修改人")
    @TableField("update_by")
    private String updateBy;


}
